﻿using ModelLayer;
using CinemaDbLib;
using System;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;

public class MovieCtrl: IMovieCtrl
{
	private MovieDB movieDB;

	public MovieCtrl()
	{
		movieDB = new MovieDB();
	}

	public Movie getMovieById(int id)
	{
		return movieDB.getMovieById(id);
	}

	public Movie[] getMovies()
	{
		return movieDB.getMovies().ToArray();

	}
}